<?php
use yii\helpers\ArrayHelper;

?>


<td><?= $form->field($model, "[$key]class")->widget(\kartik\widgets\Select2::className(), [
        'data' => ArrayHelper::map(\backend\models\CategoriesDjr::find()->where(['class' => 'project_file_types'])->orderBy('order asc')->asArray()->all(), 'key', 'value'),
    ])->label(false); ?></td>
<td><?= $form->field($model, "[$key]path")->fileInput()->label(false); ?></td>
<td class="text-right">
    <a data-action="delete">
        <button type="button" class="btn btn-info">
            <span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
        </button>
    </a></td>